<table>
    <thead>
        <tr>
            <g:sortableColumn property="id" title="${message(code: 'moc.tg.id.label', default: 'Id')}" />
            <th><g:message code="moc.tg.td.label" default="Td" /></th>
            <g:sortableColumn property="tg001" title="${message(code: 'moc.tg.tg001.label', default: 'Tg001')}" />
            <th><g:message code="moc.tg.tc.label" default="Tc" /></th>
        </tr>
    </thead>
    <tbody>
    <g:each in="${tgInstanceList}" status="i" var="tgInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${tgInstance.id}">${fieldValue(bean: tgInstance, field: "id")}</g:link></td>
            <td>${fieldValue(bean: tgInstance, field: "td.td001")}</td>
            <td>${fieldValue(bean: tgInstance, field: "tg001")}</td>
            <td>${fieldValue(bean: tgInstance, field: "tc.tc001")}</td>
        </tr>
    </g:each>
    </tbody>
</table>